﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BrickBreaker.Core
{
    public class BBProjectile : BBSingleSprite
    {
        #region PROPERTIES

        #endregion

        #region OBJECT CONSTRUCTION

        public BBProjectile(Vector2 position) : base(null, Vector2.Zero)
        {
            base.texture = BBGlobalConfig.bullet;
            base.position = position;
            base.speed = new Vector2(0.0f, 6.0f);

            // always shoot up
            base.direction = new Vector2(0.0f, -1.0f);
        }

        #endregion

        #region PUBLIC METHODS

        public override void Move(GameTime gameTime)
        {
            base.position += (speed * direction);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }

        public override void Reset()
        {
            
        }

        #endregion

    }
}
